<%= content_for :header_title, '全部用户' %>
<%= content_for :page_content do %>

    <div class="page-content">
      <div class="page-header">
        <h1>
          全部列表
        </h1>
      </div><!-- /.page-header -->

      <div class="row">
        <div class="col-xs-12">
          <!-- PAGE CONTENT BEGINS -->
            <table class="table">
              <thead>
                <tr>
                  <td>ID</td>
                  <td>账户</td>
                  <td>博客总数</td>
                  <td>注册时间</td>
                  <td>更新时间</td>

                  <td>管理员吗？</td>
                  <td>当前登录时间</td>
                  <td>登录IP</td>
                  <td>最后登录时间</td>
                  <td>最后登录IP</td>
                  <td>登录次数</td>
                </tr>
              </thead>
              <tbody>
              <% @users.each do |user| %>
                <tr>
                  <td><%= user.id %></td>
                  <td><a href="<%= manager_users_bm_query_user_path(user) %>"><%= user.email %></a></td>
                  <td><%= user.posts_count %></td>
                  <td><%= user.created_at %></td>
                  <td><%= user.updated_at %></td>
                  <td><%= user.admin? %></td>
                  <td><%= user.current_sign_in_at %></td>
                  <td><%= user.current_sign_in_ip %></td>
                  <td><%= user.last_sign_in_at %></td>
                  <td><%= user.last_sign_in_ip %></td>
                  <td><%= user.sign_in_count %></td>
                </tr>
              <% end %>
              </tbody>
            </table>


          <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.page-content -->
<%end %>